﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ZSZ.Website.Areas.WebAdmin.Models
{
    public class LoginViewModel
    {
        [Required(ErrorMessage ="用户名不能为空")]
        [DisplayName("用户名")]
        public string userName { get; set; }

        [Required(ErrorMessage ="密码不能为空")]
        [DisplayName("密码")]
        public string password { get; set; }

        [Required(ErrorMessage ="验证码不能为空")]
        [StringLength(4, MinimumLength = 4,ErrorMessage ="验证码输入长度有误")]
        [DisplayName("验证码")]
        public string validateCode { get; set; }
    }
}